# --**coding:utf-8**--

import paramiko,time


def register():
    '''注册ssh客户端，返回ssh对象'''
    sshClient = paramiko.SSHClient()
    sshClient.set_missing_host_key_policy(paramiko.AutoAddPolicy())
    sshClient.connect('100.66.225.5', port=22, username='linkface', password='linkfaceRD')
    return sshClient


def timeFormat():
    '''时间格式化'''
    localTime = time.localtime(time.time()) # 获取当前时间
    strTime = time.strftime("%Y%m%d",localTime) # 格式化
    return strTime

